//
//  GuideView.m
//  Car
//
//  Created by apple on 15/9/21.
//  Copyright (c) 2015年 朱鸿儒. All rights reserved.
//

#import "GuideView.h"

@implementation GuideView

- (instancetype)initWithFrame:(CGRect)frame {
    
    self  = [super initWithFrame:frame];
    
    if (self) {
        
        self.contentSize = CGSizeMake(4 * kWidth, kHeight);
        self.pagingEnabled = YES;
        
        for (int a = 0; a < 4; a++) {
            self.showImage = [[UIImageView alloc] initWithFrame:CGRectMake(kWidth * a, 0, kWidth, kHeight)];
            self.showImage.image = [UIImage imageNamed:[NSString stringWithFormat:@"thecar%d",a+1]];
//            UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * a, 0, kWidth, kHeight)];
//            
//            label.backgroundColor = [UIColor colorWithRed:arc4random()% 256/255.0 green:arc4random()% 256/255.0 blue:arc4random()% 256/255.0 alpha:1.0];
            
            [self addSubview:self.showImage];
            
        }
        
        
        
    }
    
    return self;
}

@end
